#ifndef __opt_h
#define __opt_h 1
#include <string.h>
#include <stdlib.h>
#include <stdio.h>

enum {
    OPT_INT = 0,
    OPT_NONE,
    OPT_STRING,
};

typedef struct opt_map_s {
    char* optstr;
    void* val;
    int type;
    char* comment;
} OPT_T;

extern int opt_parse(OPT_T* opt, int size, int argc, char** argv);
#endif